import request from "@/utils/request"

export function queryAccountPage(data) {
  return request({
    url: "/user/queryAccountPage",
    method: "get",
    params: data
  })
}

// 删除用户接口
export function deleteAccount(id) {
  return request({
    url: "/user/deleteAccount",
    method: "POST",
    data: id
  })
}

// 新增按钮接口
export function insertUser(data) {
  return request({
    url: "/user/insertAccount",
    method: "POST",
    data: data
  })
}

// 账户管理编辑接口
export function updateLAccount(data) {
  return request({
    url: "/user/updateAccount",
    method: "POST",
    data: data
  })
}


export function updateLAccountPwd(data) {
  return request({
    url: "/user/updateLAccountPwd",
    method: "post",
    data: data
  })
}

// 账户重置密码接口
export function resetPassword(id) {
  return request({
    url: `/user/resetPassword`,
    method: "POST",
    data: id
  })
}

// 启用&停用
export function deactivate(id) {
  return request({
    url: `/user/deactivate`,
    method: "POST",
    data: id
  })
}
